package sy4_3;

public class Square implements EqualDiagonal{
    private double Edgelength;

    public double getEdgelength() {
        return Edgelength;
    }

    public void setEdgelength(double edgelength) {
        Edgelength = edgelength;
    }

    @Override
    public double getDiagonal() {
        return Math.sqrt(Edgelength*Edgelength*2);
    }
}
